﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
 
using AISservice.Common;
using Microsoft.AspNetCore.Mvc;

namespace AISservice.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class ValuesController : ControllerBase
    {
        public ValuesController()
        {
        }

        [HttpGet]
        public ActionResult<string> GetAllMenthod()
        {
            return JsonHelper.ObjectToJson(RoutingService.Method_List.Keys);
        }

        [HttpGet]
        public ActionResult<string> Getparam()
        {
            return JsonHelper.ObjectToJson(new List<string>() {
                AIS.SDK.Common.GlobalVariables.GetAISenvironment(),AIS.SDK.Common.GlobalVariables.GetAISServerUrl()
            });
        }
    }
}
